package com.acjava.chatgpt.domain.qa;

import com.acjava.chatgpt.domain.other.Choice;
import com.acjava.chatgpt.domain.other.Usage;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @Author loujm  acjava.com @铭轩
 * @Description 文本问答，响应信息：OpenAI 官网API：本问答，请求信息；OpenAI官网API构建参数；<a href="https://platform.openai.com/playground">...</a>
 * @Date 2024/8/2 上午12:10
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class QACompletionResponse implements Serializable {

    /** ID */
    private String id;
    /** 对象 */
    private String object;
    /** 模型 */
    private String model;
    /** 对话 */
    private Choice[] choices;
    /** 创建 */
    private long created;
    /** 耗材 */
    private Usage usage;
}
